﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001351 RID: 4945
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeMaterialSubmitActivityRewardScRsp : IMessage<TakeMaterialSubmitActivityRewardScRsp>, IMessage, IEquatable<TakeMaterialSubmitActivityRewardScRsp>, IDeepCloneable<TakeMaterialSubmitActivityRewardScRsp>, IBufferMessage
	{
		// Token: 0x17003E64 RID: 15972
		// (get) Token: 0x0600DD6F RID: 56687 RVA: 0x00250E0B File Offset: 0x0024F00B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeMaterialSubmitActivityRewardScRsp> Parser
		{
			get
			{
				return TakeMaterialSubmitActivityRewardScRsp._parser;
			}
		}

		// Token: 0x17003E65 RID: 15973
		// (get) Token: 0x0600DD70 RID: 56688 RVA: 0x00250E12 File Offset: 0x0024F012
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeMaterialSubmitActivityRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003E66 RID: 15974
		// (get) Token: 0x0600DD71 RID: 56689 RVA: 0x00250E24 File Offset: 0x0024F024
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeMaterialSubmitActivityRewardScRsp.Descriptor;
			}
		}

		// Token: 0x0600DD72 RID: 56690 RVA: 0x00250E2B File Offset: 0x0024F02B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeMaterialSubmitActivityRewardScRsp()
		{
		}

		// Token: 0x0600DD73 RID: 56691 RVA: 0x00250E34 File Offset: 0x0024F034
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeMaterialSubmitActivityRewardScRsp(TakeMaterialSubmitActivityRewardScRsp other) : this()
		{
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this.retcode_ = other.retcode_;
			this.belobogShopId_ = other.belobogShopId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DD74 RID: 56692 RVA: 0x00250E8C File Offset: 0x0024F08C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeMaterialSubmitActivityRewardScRsp Clone()
		{
			return new TakeMaterialSubmitActivityRewardScRsp(this);
		}

		// Token: 0x17003E67 RID: 15975
		// (get) Token: 0x0600DD75 RID: 56693 RVA: 0x00250E94 File Offset: 0x0024F094
		// (set) Token: 0x0600DD76 RID: 56694 RVA: 0x00250E9C File Offset: 0x0024F09C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x17003E68 RID: 15976
		// (get) Token: 0x0600DD77 RID: 56695 RVA: 0x00250EA5 File Offset: 0x0024F0A5
		// (set) Token: 0x0600DD78 RID: 56696 RVA: 0x00250EAD File Offset: 0x0024F0AD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003E69 RID: 15977
		// (get) Token: 0x0600DD79 RID: 56697 RVA: 0x00250EB6 File Offset: 0x0024F0B6
		// (set) Token: 0x0600DD7A RID: 56698 RVA: 0x00250EBE File Offset: 0x0024F0BE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BelobogShopId
		{
			get
			{
				return this.belobogShopId_;
			}
			set
			{
				this.belobogShopId_ = value;
			}
		}

		// Token: 0x0600DD7B RID: 56699 RVA: 0x00250EC7 File Offset: 0x0024F0C7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeMaterialSubmitActivityRewardScRsp);
		}

		// Token: 0x0600DD7C RID: 56700 RVA: 0x00250ED8 File Offset: 0x0024F0D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeMaterialSubmitActivityRewardScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.Reward, other.Reward) && this.Retcode == other.Retcode && this.BelobogShopId == other.BelobogShopId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DD7D RID: 56701 RVA: 0x00250F38 File Offset: 0x0024F138
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.BelobogShopId != 0U)
			{
				num ^= this.BelobogShopId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DD7E RID: 56702 RVA: 0x00250FA6 File Offset: 0x0024F1A6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DD7F RID: 56703 RVA: 0x00250FAE File Offset: 0x0024F1AE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DD80 RID: 56704 RVA: 0x00250FB8 File Offset: 0x0024F1B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.BelobogShopId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.BelobogShopId);
			}
			if (this.reward_ != null)
			{
				output.WriteRawTag(106);
				output.WriteMessage(this.Reward);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DD81 RID: 56705 RVA: 0x00251030 File Offset: 0x0024F230
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.BelobogShopId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BelobogShopId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DD82 RID: 56706 RVA: 0x002510A0 File Offset: 0x0024F2A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeMaterialSubmitActivityRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.BelobogShopId != 0U)
			{
				this.BelobogShopId = other.BelobogShopId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DD83 RID: 56707 RVA: 0x0025111C File Offset: 0x0024F31C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DD84 RID: 56708 RVA: 0x00251128 File Offset: 0x0024F328
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 72U)
				{
					if (num != 106U)
					{
						if (num != 120U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Retcode = input.ReadUInt32();
						}
					}
					else
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
					}
				}
				else
				{
					this.BelobogShopId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040057DF RID: 22495
		private static readonly MessageParser<TakeMaterialSubmitActivityRewardScRsp> _parser = new MessageParser<TakeMaterialSubmitActivityRewardScRsp>(() => new TakeMaterialSubmitActivityRewardScRsp());

		// Token: 0x040057E0 RID: 22496
		private UnknownFieldSet _unknownFields;

		// Token: 0x040057E1 RID: 22497
		public const int RewardFieldNumber = 13;

		// Token: 0x040057E2 RID: 22498
		private ItemList reward_;

		// Token: 0x040057E3 RID: 22499
		public const int RetcodeFieldNumber = 15;

		// Token: 0x040057E4 RID: 22500
		private uint retcode_;

		// Token: 0x040057E5 RID: 22501
		public const int BelobogShopIdFieldNumber = 9;

		// Token: 0x040057E6 RID: 22502
		private uint belobogShopId_;
	}
}
